From 2a34285ad72ef32e255a4aca6895bd54c11c50e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Javier=20Jard=C3=B3n?= Date: Thu, 7 Jan 2010 08:33:08 +0100 Subject: [PATCH] Fix links in GtkComboBox migration guide Some link to GTK+ classes are not gererated because the ":" near the class name; solution: "#GtkComboBox:" Also, added some links to the proper signals Fixes https://bugzilla.gnome.org/show_bug.cgi?id=606291 --- docs/reference/gtk/migrating-GtkComboBox.sgml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/reference/gtk/migrating-GtkComboBox.sgml b/docs/reference/gtk/migrating-GtkComboBox.sgml index a449926428..4114bdc15a 100644 --- a/docs/reference/gtk/migrating-GtkComboBox.sgml +++ b/docs/reference/gtk/migrating-GtkComboBox.sgml @@ -20,7 +20,7 @@ editable case. The selection of the display style — menu or list — is no longer done at the API level, but has been made themeable via - the style property #GtkComboBox:appearance. + the style property #GtkComboBox:appears-as-list.
@@ -28,7 +28,7 @@ Here is an example of a simple, but typical use of - #GtkOptionMenu: + #GtkOptionMenu: GtkWidget *option_menu, *menu, *menu_item; @@ -47,12 +47,12 @@ gtk_widget_show (menu_item); gtk_option_menu_set_menu (GTK_OPTION_MENU (option_menu), menu); - In order to react to the user's selection, connect to the "changed" + In order to react to the user's selection, connect to the #GtkOptionMenu::changed signal on the option menu and use gtk_option_menu_get_history() to retrieve the index of the selected item. - And here is how it would be done with a #GtkComboBox: + And here is how it would be done with a #GtkComboBox: GtkWidget *combo_box; @@ -129,7 +129,7 @@ gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (combo_box), renderer, Migrating from GtkCombo to GtkComboBoxEntry - Here is an example of a simple, but typical use of a #GtkCombo: + Here is an example of a simple, but typical use of a #GtkCombo: GtkWidget *combo; GList *items = NULL; @@ -141,13 +141,13 @@ items = g_list_append (items, "Third Item"); combo = gtk_combo_new (); gtk_combo_set_popdown_strings (GTK_COMBO (combo), items); - In order to react to the user's selection, connect to the "changed" + In order to react to the user's selection, connect to the #GtkCombo::changed signal on the combo and use gtk_entry_get_text (GTK_ENTRY (combo->entry)) to retrieve the selected text. - And here is how it would be done using #GtkComboBoxEntry: + And here is how it would be done using #GtkComboBoxEntry: combo_box = gtk_combo_box_entry_new_text (); @@ -155,7 +155,7 @@ gtk_combo_box_append_text (GTK_COMBO_BOX (combo_box), "First Item"); gtk_combo_box_append_text (GTK_COMBO_BOX (combo_box), "Second Item"); gtk_combo_box_append_text (GTK_COMBO_BOX (combo_box), "Third Item"); - In order to react to the user's selection, connect to the "changed" + In order to react to the user's selection, connect to the #GtkComboBox::changed signal on the combo and use gtk_entry_get_text (GTK_ENTRY (GTK_BIN (combo_box)->child)) to retrieve the selected text. -- 2.30.2